import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import "vant/lib/index.css";

//引入重置样式
import "../src/assets/css/reset.less";
import Vant from "vant";
import {
  Tabbar,
  TabbarItem,
  Search,
  Swipe,
  SwipeItem,
  NavBar,
  TreeSelect,
  Icon,
  Button,
  IndexBar,
  IndexAnchor,
  ConfigProvider,
  Grid,
  GridItem,
  Tab,
  Tabs,
  PullRefresh,
  ActionBar,
  ActionBarIcon,
  ActionBarButton,
  ActionSheet,
} from "vant";
//引入字体图标
import "./assets/font/iconfont.css";
//设置根字体大小
import "amfe-flexible";
// 矢量图标
import "@/assets/font/iconfont.js";
import "nprogress/nprogress.css";
import NProgress from "nprogress";

createApp(App)
  .use(store)
  .use(NProgress)
  .use(router)
  .use(Vant)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(NavBar)
  .use(Search)
  .use(Button)
  .use(ConfigProvider)
  .use(Grid)
  .use(GridItem)
  .use(Tab)
  .use(Tabs)
  .use(IndexBar)
  .use(TreeSelect)
  .use(IndexAnchor)
  .use(PullRefresh)
  .use(ActionBar)
  .use(ActionBarIcon)
  .use(ActionBarButton)
  .use(ActionSheet)
  .mount("#app");
